package com.allwees.bs.module.scm.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.allwees.bs.core.model.order.entity.ErpBaseOrderSku;
import com.allwees.core.common.constant.EStatus;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * scm 待分配订单 : sku 维度
 *
 * @author mouhn
 * @since 2020-1-2 10:28
 */
@Data
@Accessors(chain = true)
@TableName("scm_allocate_order_sku")
public class ScmAllocateOrderSku extends ErpBaseOrderSku {

    public boolean isSellouted() {
        return EStatus.SELLOUT.value().equals(getStatus());
    }

    public boolean isHaved() {
        return EStatus.NORMAL.value().equals(getStatus());
    }
}
